package cn.lg.soar.system.general.entity;

import cn.lg.soar.database.base.entity.BaseEntity;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 配置定义
 * @author luguoxiang
 * @since 2023-07-13
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "UserConfigGroup", description = "")
@TableName("lg_sys_user_config_group")
public class UserConfigGroup extends BaseEntity {

    private static final long serialVersionUID = -2547558988208075863L;
    @ExcelIgnore
    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ExcelProperty(value = "编码")
    @ApiModelProperty(value = "编码")
    private String code;

    @ExcelProperty(value = "名称")
    @ApiModelProperty(value = "名称")
    private String name;

    @JsonIgnore
    @Override
    public Serializable primaryKey() {
        return this.id;
    }

}
